package com.cskaoyan.mapper.marketMapper;

import com.cskaoyan.bean.marketBean.*;
import com.cskaoyan.bean.vo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface MarketAdminMapper {
    long countByExample(MarketAdminExample example);

    int deleteByExample(MarketAdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAdmin record);

    int insertSelective(MarketAdmin record);

    List<MarketAdmin> selectByExample(MarketAdminExample example);

    MarketAdmin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAdmin record, @Param("example") MarketAdminExample example);

    int updateByExample(@Param("record") MarketAdmin record, @Param("example") MarketAdminExample example);

    int updateByPrimaryKeySelective(MarketAdmin record);

    int updateByPrimaryKey(MarketAdmin record);

    List<MJMarketAdminListBean> selectByName(String username);

    List<MJMarketAdminOption> selectOption();


    int insertAdmin(MJMarketAdminCreateVO param);

    void updateAdmin(MarketAdmin param);

    List<MarketLog> selectAdminLog(String username);

    List<MarketRole> selectRole(String name);

    void insertRole(MarketRole param);

    MarketRole selectRoleById(Integer id);

    void updateRole(MarketRole param);

    void deleteRoleById(Integer id);

    MarketAdmin selectRoleIdByAdminId(Integer id);


    MarketAdmin selectRoleIdByUserId(Integer id);
}